<?php
/**
 * 测试公司员工列表功能
 */

// 模拟请求参数
$testData = [
    'page' => 1,
    'page_size' => 10,
    'Authorization' => 'Bearer your_access_token_here' // 需要替换为实际的token
];

echo "=== 公司员工列表功能测试 ===\n";
echo "接口地址: GET /v1/company/member-list\n";
echo "请求参数:\n";
echo "- page: 页码 (默认1)\n";
echo "- page_size: 每页数量 (默认10，最大50)\n";
echo "- Authorization: Bearer token (必需)\n\n";

echo "返回数据格式:\n";
echo "{\n";
echo "  \"code\": 1,\n";
echo "  \"msg\": \"获取员工列表成功\",\n";
echo "  \"data\": {\n";
echo "    \"list\": [\n";
echo "      {\n";
echo "        \"id\": 用户ID,\n";
echo "        \"nickname\": \"用户昵称\",\n";
echo "        \"phone\": \"脱敏手机号\",\n";
echo "        \"headimg\": \"头像URL\",\n";
echo "        \"avatar\": \"头像完整URL\",\n";
echo "        \"vip_at\": VIP到期时间,\n";
echo "        \"is_vip\": 是否VIP,\n";
echo "        \"score\": 积分,\n";
echo "        \"created_at\": \"创建时间\"\n";
echo "      }\n";
echo "    ],\n";
echo "    \"total\": 总记录数,\n";
echo "    \"current_page\": 当前页码,\n";
echo "    \"per_page\": 每页数量,\n";
echo "    \"last_page\": 最后一页,\n";
echo "    \"company\": {\n";
echo "      \"id\": 公司ID,\n";
echo "      \"name\": \"公司名称\",\n";
echo "      \"total_members\": 公司总员工数\n";
echo "    }\n";
echo "  }\n";
echo "}\n\n";

echo "功能特点:\n";
echo "1. 分页支持，默认每页10条，最大50条\n";
echo "2. 自动排除当前登录用户\n";
echo "3. 手机号自动脱敏处理\n";
echo "4. 返回公司基本信息和员工总数\n";
echo "5. 按创建时间倒序排列\n";
echo "6. 包含VIP状态和积分信息\n";
echo "7. 完整的错误处理和异常捕获\n"; 